package cn.iocoder.yudao.module.resource.api.model.usertimetransaction;

import cn.iocoder.yudao.framework.common.pojo.PageParam;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class UserTimeTransactionPageReqDTO extends PageParam {

    /**
     * 交易id
     */
    private String id;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 交易类型
     */
    private Integer transactionType;

    /**
     * 交易时长(毫秒)
     */
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private Long[] transactionTimeMs;

    /**
     * 剩余时长(毫秒)
     */
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private Long[] remainingTimeMs;

    /**
     * 充值订单ID
     */
    private Long orderId;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}